package com.lanxin.oa.zc.service;

import com.lanxin.bean.ZcAssetpurchaseapply;
import com.lanxin.bean.ZcAssetpurchaseapplydetails;
import com.lanxin.util.PageBean;

import java.util.List;

public interface ZcGouMaiService {
    //查询所有移动资产
    List<ZcAssetpurchaseapply> selectzcgm(Integer empid);
    //查询审批流程
    List selectflow();
    //查询员工
    List selectEmpByempName();
    //查询部门
    List selectDeptById();
    //查询职位
    List selectJob();

    //添加资产移动和明细
    void insert(ZcAssetpurchaseapply zcAssetpurchaseapply, String assetName[], String assetNumber[], String guige[],Integer shengou[],Double unitPrice[],Integer quantity[]);
    //单号
    String createFlowId();
    //提交
    void tijiao(String status,Integer oid);
    //查询
    ZcAssetpurchaseapply selectByid(Integer oid);
    //修改
    void update(ZcAssetpurchaseapply zcAssetpurchaseapply,Integer mxoid[], String assetName[], String assetNumber[], String guige[],Integer shengou[],Double unitPrice[],Integer quantity[]);
    //删除
    boolean delete(ZcAssetpurchaseapply zcgm);
    //查询明细
    List selectmx(Integer oid);
    //添加报价
    void  insertbaojia(ZcAssetpurchaseapplydetails gmmx, Double price[],String linkman[],String linkPhone[],String remark[] );
    //分页查询所有购买的资产
    PageBean<ZcAssetpurchaseapply> selectallzcgm(Integer page, Integer pageSize);


}
